/**
 */
package ConnectorGenerator.Auxiliary.impl;

import ConnectorGenerator.Auxiliary.AuxiliaryFactory;
import ConnectorGenerator.Auxiliary.AuxiliaryPackage;
import ConnectorGenerator.Auxiliary.FirstClassEntity;

import ConnectorGenerator.CommunicationStyle.CommunicationStylePackage;

import ConnectorGenerator.CommunicationStyle.impl.CommunicationStylePackageImpl;

import ConnectorGenerator.ConnectorArchitecture.ConnectorArchitecturePackage;

import ConnectorGenerator.ConnectorArchitecture.impl.ConnectorArchitecturePackageImpl;

import ConnectorGenerator.ConnectorGeneratorPackage;

import ConnectorGenerator.DRD.DRDPackage;

import ConnectorGenerator.DRD.impl.DRDPackageImpl;

import ConnectorGenerator.ElementArchitecture.ElementArchitecturePackage;

import ConnectorGenerator.ElementArchitecture.impl.ElementArchitecturePackageImpl;

import ConnectorGenerator.Feature.FeaturePackage;

import ConnectorGenerator.Feature.impl.FeaturePackageImpl;

import ConnectorGenerator.Signature.SignaturePackage;

import ConnectorGenerator.Signature.impl.SignaturePackageImpl;

import ConnectorGenerator.impl.ConnectorGeneratorPackageImpl;

import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;

import org.eclipse.emf.ecore.impl.EPackageImpl;

/**
 * <!-- begin-user-doc -->
 * An implementation of the model <b>Package</b>.
 * <!-- end-user-doc -->
 * @generated
 */
public class AuxiliaryPackageImpl extends EPackageImpl implements AuxiliaryPackage {
	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private EClass firstClassEntityEClass = null;

	/**
	 * Creates an instance of the model <b>Package</b>, registered with
	 * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
	 * package URI value.
	 * <p>Note: the correct way to create the package is via the static
	 * factory method {@link #init init()}, which also performs
	 * initialization of the package, or returns the registered package,
	 * if one already exists.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see org.eclipse.emf.ecore.EPackage.Registry
	 * @see ConnectorGenerator.Auxiliary.AuxiliaryPackage#eNS_URI
	 * @see #init()
	 * @generated
	 */
	private AuxiliaryPackageImpl() {
		super(eNS_URI, AuxiliaryFactory.eINSTANCE);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static boolean isInited = false;

	/**
	 * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
	 * 
	 * <p>This method is used to initialize {@link AuxiliaryPackage#eINSTANCE} when that field is accessed.
	 * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #eNS_URI
	 * @see #createPackageContents()
	 * @see #initializePackageContents()
	 * @generated
	 */
	public static AuxiliaryPackage init() {
		if (isInited) return (AuxiliaryPackage)EPackage.Registry.INSTANCE.getEPackage(AuxiliaryPackage.eNS_URI);

		// Obtain or create and register package
		AuxiliaryPackageImpl theAuxiliaryPackage = (AuxiliaryPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof AuxiliaryPackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new AuxiliaryPackageImpl());

		isInited = true;

		// Obtain or create and register interdependencies
		ConnectorGeneratorPackageImpl theConnectorGeneratorPackage = (ConnectorGeneratorPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI) instanceof ConnectorGeneratorPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConnectorGeneratorPackage.eNS_URI) : ConnectorGeneratorPackage.eINSTANCE);
		DRDPackageImpl theDRDPackage = (DRDPackageImpl)(EPackage.Registry.INSTANCE.getEPackage(DRDPackage.eNS_URI) instanceof DRDPackageImpl ? EPackage.Registry.INSTANCE.getEPackage(DRDPackage.eNS_URI) : DRDPackage.eINSTANCE);
		CommunicationStylePackageImpl theCommunicationStylePackage = (CommunicationStylePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI) instanceof CommunicationStylePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(CommunicationStylePackage.eNS_URI) : CommunicationStylePackage.eINSTANCE);
		SignaturePackageImpl theSignaturePackage = (SignaturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(SignaturePackage.eNS_URI) instanceof SignaturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(SignaturePackage.eNS_URI) : SignaturePackage.eINSTANCE);
		FeaturePackageImpl theFeaturePackage = (FeaturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI) instanceof FeaturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(FeaturePackage.eNS_URI) : FeaturePackage.eINSTANCE);
		ConnectorArchitecturePackageImpl theConnectorArchitecturePackage = (ConnectorArchitecturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ConnectorArchitecturePackage.eNS_URI) instanceof ConnectorArchitecturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ConnectorArchitecturePackage.eNS_URI) : ConnectorArchitecturePackage.eINSTANCE);
		ElementArchitecturePackageImpl theElementArchitecturePackage = (ElementArchitecturePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(ElementArchitecturePackage.eNS_URI) instanceof ElementArchitecturePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(ElementArchitecturePackage.eNS_URI) : ElementArchitecturePackage.eINSTANCE);

		// Create package meta-data objects
		theAuxiliaryPackage.createPackageContents();
		theConnectorGeneratorPackage.createPackageContents();
		theDRDPackage.createPackageContents();
		theCommunicationStylePackage.createPackageContents();
		theSignaturePackage.createPackageContents();
		theFeaturePackage.createPackageContents();
		theConnectorArchitecturePackage.createPackageContents();
		theElementArchitecturePackage.createPackageContents();

		// Initialize created meta-data
		theAuxiliaryPackage.initializePackageContents();
		theConnectorGeneratorPackage.initializePackageContents();
		theDRDPackage.initializePackageContents();
		theCommunicationStylePackage.initializePackageContents();
		theSignaturePackage.initializePackageContents();
		theFeaturePackage.initializePackageContents();
		theConnectorArchitecturePackage.initializePackageContents();
		theElementArchitecturePackage.initializePackageContents();

		// Mark meta-data to indicate it can't be changed
		theAuxiliaryPackage.freeze();

  
		// Update the registry and return the package
		EPackage.Registry.INSTANCE.put(AuxiliaryPackage.eNS_URI, theAuxiliaryPackage);
		return theAuxiliaryPackage;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public EClass getFirstClassEntity() {
		return firstClassEntityEClass;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public AuxiliaryFactory getAuxiliaryFactory() {
		return (AuxiliaryFactory)getEFactoryInstance();
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isCreated = false;

	/**
	 * Creates the meta-model objects for the package.  This method is
	 * guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void createPackageContents() {
		if (isCreated) return;
		isCreated = true;

		// Create classes and their features
		firstClassEntityEClass = createEClass(FIRST_CLASS_ENTITY);
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private boolean isInitialized = false;

	/**
	 * Complete the initialization of the package and its meta-model.  This
	 * method is guarded to have no affect on any invocation but its first.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public void initializePackageContents() {
		if (isInitialized) return;
		isInitialized = true;

		// Initialize package
		setName(eNAME);
		setNsPrefix(eNS_PREFIX);
		setNsURI(eNS_URI);

		// Create type parameters

		// Set bounds for type parameters

		// Add supertypes to classes

		// Initialize classes and features; add operations and parameters
		initEClass(firstClassEntityEClass, FirstClassEntity.class, "FirstClassEntity", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
	}

} //AuxiliaryPackageImpl
